Page({
  data:{
    homeList:{}
  },
  async onLoad({id}){
    const {code,data:homeList} = await wx.http.get('/room/'+id)
    if(code!==10000) return wx.utils.toast('参数有误')
    this.setData({
      homeList
    })
  },
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id='+this.data.homeList.id,
    })
  },
})
